use std::time::Duration;

use serde::{Serialize, Deserialize};
#[derive(Debug, Serialize, Deserialize)]
pub struct Seconds(u32);
impl Seconds {
    pub fn from_seconds(seconds: u32) -> Self {
        Self(seconds)
    }
    pub fn seconds(self) -> u32 {
        self.0
    }

    pub fn duration(self) -> Duration {
        Duration::from_secs(self.seconds() as u64)
    }
}
pub trait ToSeconds {
   fn to_seconds() -> Seconds; 
}